#include "particle.h"

// PARTICLE //

Particle::Particle(Vec3d initialPosition, Vec3d initialVelocity, double mass) : position(initialPosition), velocity(initialVelocity), mass(mass) {}

void Particle::accumulateForce(Vec3d newForce) {
	force_accumulator += newForce;
}
void Particle::clearAccumulator() {
	force_accumulator = Vec3d(0, 0, 0);
}

Vec3d Particle::getForce() {
	return force_accumulator;
}

double Particle::getMass() {
	return mass;
}

Vec3d Particle::getPosition() {
	return position;
}

Vec3d Particle::getVelocity() {
	return velocity;
}

void Particle::setPosition(Vec3d newPosition) {
	position = newPosition;
}
void Particle::setVelocity(Vec3d newVelocity) {
	velocity = newVelocity;
}
